package com.hospital.post.feign;

import com.hospital.common.base.Result;
import com.hospital.common.config.FeignConfig;
import com.hospital.common.dto.message.module.AddMessageDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "message-module",configuration = FeignConfig.class)
public interface MessageFeign
{
    @PostMapping("/addMessage")
    Result addMessage(@RequestBody AddMessageDto addMessageDto);

}
